#ifndef _TID_ARR_
#define _TID_ARR_
#include<my_header.h>
typedef struct TidArr{
    pthread_t *arr;
    int workNum;
}TidArr_t;

int tidArrinit(TidArr_t* tidArr,int workNum){
    tidArr->arr=(pthread_t *) calloc(workNum,sizeof(pthread_t));
    if (!tidArr->arr) return -1;
    tidArr->workNum=workNum;
    return 1;
}
#endif